import axios from "../../utils/axios";
/**
 *  2.0版本
 */

// /dailyBus/getAllDailyNewPage 获取全部每日新品
export function getAllDailyNewPage(query) {
    return axios({
        url: "/dailyBus/getAllDailyNewPage",
        method: "post",
        params: query
    });
}
// /dailyBus/deleteDailyNew 删除每日新品
export function deleteDailyNew(query) {
    return axios({
        url: "/dailyBus/deleteDailyNew",
        method: "get",
        params: query
    });
}
// /dailyBus/batchAddDailyNew 批量添加每日新品
export function batchAddDailyNew(query) {
    return axios({
        url: "/dailyBus/batchAddDailyNew",
        method: "get",
        params: query
    });
}

// /dailyBus/getCanAddCommodityList 可以添加的商品列表
export function getCanAddCommodityList(query) {
    return axios({
        url: "/dailyBus/getCanAddCommodityList",
        method: "get",
        params: query
    });
}
// /pickUpOrders/getAdminList 提货管理 获取商家账号列表
export function getAdminList(query) {
    return axios({
        url: "/goldendays-user/pickUpOrders/getAdminList",
        method: "get",
        params: query
    });
}

// /pickUpOrders/getOrderList 提货管理 获取商家提货单列表
export function getOrderList(query) {
    return axios({
        url: "/goldendays-user/pickUpOrders/getOrderList",
        method: "get",
        params: query
    });
}
// /pickUpOrders/sendGoods 提货管理 商家端-发货
export function sendGoods(query) {
    return axios({
        url: "/goldendays-user/pickUpOrders/sendGoods",
        method: "post",
        data: query
    });
}
// /yunInventory/getAdminInventoryList 云库存管理 获取商家账号列表
export function getAdminInventoryList(query) {
    return axios({
        url: "/yunInventory/getAdminInventoryList",
        method: "get",
        params: query
    });
}
// /yunInventory/getDetail 云库存管理 查看云库存详情
export function getDetail(query) {
    return axios({
        url: "/yunInventory/getDetail",
        method: "get",
        params: query
    });
}

// admin/getStockMerchantPage 获取进货商家列表接口
export function getStockMerchantPage(query) {
    return axios({
        url: "/goldendays-user/admin/getStockMerchantPage",
        method: "get",
        params: query
    });
}
// admin/getPickUpCommdityPage 获取进货商家列表接口2.0
export function getPickUpCommdityPage(query) {
    return axios({
        url: "/goldendays-user/admin/getPickUpCommdityPage",
        method: "get",
        params: query
    });
}

// admin/getAllPurchaseOrdersList 获取商户进货列表
export function getAllPurchaseOrdersList(query) {
    return axios({
        url: "/goldendays-user/admin/getAllPurchaseOrdersList",
        method: "get",
        params: query
    });
}
